package com.onpositive.page.core.wikihelper;

import com.onpositive.richtext.model.IRegionCompositeWrapper;
import com.onpositive.richtext.model.IRegionCompositeWrapperListener;
import com.onpositive.richtext.model.IRichDocumentAutoStylingStrategy;
import com.onpositive.richtext.model.PartitionDelta;
import com.onpositive.richtext.model.RegionPartition;
import com.onpositive.richtext.model.meta.DocumentEvent;
import com.onpositive.richtext.model.meta.IStyledText;
import com.onpositive.richtexteditor.model.AbstractLayerManager;
import com.onpositive.richtexteditor.model.LayerEvent;

public abstract class LayerManagerAdapter extends AbstractLayerManager{


	@Override
	public IRegionCompositeWrapperListener createRegionCompositeWrapperListener(
			RegionPartition arg0) {
		return null;
	}

	@Override
	public int getCaretOffset() {
		return 0;
	}
	
	@Override
	public IStyledText getTextWidget() {
		return null;
	}

	@Override
	public IRegionCompositeWrapper getWrapperForContentType(String arg0,
			AbstractLayerManager arg1, RegionPartition arg2) {
		return null;
	}

	@Override
	public void layerChanged(LayerEvent arg0) {
		//do nothing;
		
	}

	@Override
	public void setRefreshVisibleState(boolean arg0) {
		//do nothing;
	}

	@Override
	public void syncExec(Runnable arg0) {
		try{
		arg0.run();
		}catch (Throwable e) {
			e.printStackTrace();
		}
	}
	
	@Override
	public IRichDocumentAutoStylingStrategy[] getAutoStylingStrategies() {
		return new IRichDocumentAutoStylingStrategy[0];
	}
	
	@Override
	public void fireDocumentGoingToChange(DocumentEvent arg0) {
		
	}

	@Override
	public void fireRichDocumentEvent(DocumentEvent arg0, PartitionDelta arg1) {
		
	}
}
